<?php
/**
 * Author: Administrator
 * Date: 2022/7/20 0:07
 */
namespace DesignPatterns\Structural\DataMapper;
class User
{
    protected $id;
    protected $name;
    protected $email;

    public function __construct($id, $name, $email)
    {
        $this->id = $id;
        $this->name = $name;
        $this->email = $email;
    }

    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        return $this->id = $id;
    }

    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        return $this->name = $name;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        return $this->email = $email;
    }

}